package com.yc.rh.biz.impl;

import java.util.List;

import com.yc.rh.biz.IActivitiesInfoBiz;
import com.yc.rh.dao.IActivitiesInfoDao;
import com.yc.rh.entities.ActivitiesInfo;

public class ActivitiesInfoBizImpl implements IActivitiesInfoBiz{
	private IActivitiesInfoDao activitiesInfoDao;
	
	public void setActivitiesInfoDao(IActivitiesInfoDao activitiesInfoDao) {
		this.activitiesInfoDao = activitiesInfoDao;
	}

	@Override
	public int addActivitiesInfo(ActivitiesInfo ai) {
		return activitiesInfoDao.addActivitiesInfo(ai);
	}

	@Override
	public int delActivitiesInfo(String aiid) {
		return activitiesInfoDao.delActivitiesInfo(aiid);
	}

	@Override
	public int updateActivitiesInfo(ActivitiesInfo ai) {
		return activitiesInfoDao.updateActivitiesInfo(ai);
	}

	@Override
	public List<ActivitiesInfo> findActivitiesInfo(Integer pageNo, Integer pageSize) {
		return activitiesInfoDao.findActivitiesInfo(pageNo, pageSize);
	}

	@Override
	public int getTotal() {
		return activitiesInfoDao.getTotal();
	}
}
